package cn.wetcland.urban.admin.controller;

import cn.wetcland.urban.admin.service.UtOrderService;
import cn.wetcland.urban.admin.vo.DashboardVO;
import cn.wetcland.urban.common.AjaxResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/dashboard")
public class DashboardController {

    @Resource
    public UtOrderService orderService;

    @GetMapping("/details")
    public AjaxResponse details() {
        DashboardVO dashboardVO = orderService.dashboardDetails();
        return AjaxResponse.success(dashboardVO);
    }

}
